#!/bin/bash
[ ! -e RUNNING ]   || rm RUNNING
[ ! -e COMPLETED ] || rm COMPLETED
[ ! -e ERROR ]     || rm ERROR
[ -d target ]      || mkdir target
g++ -Wall -o target/Templet-`uname -m` Templets/Templet/templet.cpp Templets/Templet/tet.cpp -lpthread > RUNNING 2>&1 && mv RUNNING COMPLETED || mv RUNNING ERROR